// 1. 导入所有的公共组件
// 定义插件，并导出
import XtxSkeleton from '@/components/XtxSkeleton/XtxSkeleton.vue';
import XtxButton from '@/components/XtxButton/XtxButton.vue';
import XtxCarousel from '@/components/XtxCarousel/XtxCarousel.vue';
import XtxMore from '@/components/XtxMore/XtxMore.vue';
import XtxBread from '@/components/XtxBread/XtxBread.vue';
import XtxBreadItem from '@/components/XtxBread/XtxBreadItem.vue';
import XtxNumber from '@/components/XtxNumber/XtxNumber.vue';
import XtxCheckbox from '@/components/XtxCheckbox/XtxCheckbox.vue';
import XtxMessage from '@/components/XtxMessage/XtxMessage.vue';
import XtxDialog from '@/components/XtxDialog/XtxDialog.vue';
import XtxSwitch from '@/components/XtxSwitch/XtxSwitch.vue';
import XtxCity from '@/components/XtxCity/XtxCity.vue';

import { App } from 'vue'
export default {
  install(app: App) {
    // console.log('app', app)
    app.component('XtxSkeleton', XtxSkeleton)
    app.component('XtxButton', XtxButton)
    app.component('XtxCarousel', XtxCarousel)
    app.component('XtxMore', XtxMore)
    app.component('XtxBread', XtxBread)
    app.component('XtxBreadItem', XtxBreadItem)
    app.component('XtxNumber', XtxNumber)
    app.component('XtxCheckbox', XtxCheckbox)
    app.component('XtxMessage', XtxMessage)
    app.component('XtxDialog', XtxDialog)
    app.component('XtxSwitch', XtxSwitch)
    app.component('XtxCity', XtxCity)
  }
}